//
//  DYLoadView.h
//  DYHospital
//
//  Created by 胡金东 on 16/3/23.
//  Copyright © 2016年 胡金东. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DYLoadView : UIViewController


/**
 * 为导航条添加默认的返回方法
 */
- (void)addBack;
- (void)onBack;

/**
 * 显示loading
 */
- (void)showLoadingWithText:(NSString *)title;
- (void)hideLoading;

/**
 * 显示提示信息
 */
- (void)showHint:(NSString *)msg;
- (void)showHint:(NSString *)msg inCenter:(BOOL)inCenter;

/**
 *  添加不带导航视图的顶部View 和 title 和 返回按钮
 *
 */

- (void)addTopViewWithTitle:(NSString *)title width:(CGFloat) width;

- (void)addRightButtonWithTitle:(NSString *)title width:(CGFloat)width action:(SEL)sel;
/**
 * navigationbar左部添加按钮
 * title 按钮title
 */
- (void)addLeftButtonWithButtonTitle:(NSString *)title
                              action:(SEL)sel;
/**
 * navigationbar左部添加按钮
 * 图片大小96x88
 */
- (void)addLeftButtonWithImageNormal:(NSString*)imageNormal
                        imagePressed:(NSString*)imagePressed
                              action:(SEL)sel;
/**
 * navigationbar左部添加按钮
 * 图片大小96x88
 */
- (void)addLeftButtonWithImageNormal:(NSString*)imageNormal
                              action:(SEL)sel;
/**
 * navigationbar左部添加按钮
 * title 按钮title
 * 图片大小96x88
 */
- (void)addLeftButtonWithButtonTitle:(NSString *)title
                         imageNormal:(NSString*)imageNormal
                        imagePressed:(NSString*)imagePressed
                              action:(SEL)sel;

/**
 * navigationbar右部添加按钮
 * title 按钮title
 */
- (void)addRightButtonWithButtonTitle:(NSString *)title
                               action:(SEL)sel;
/**
 * navigationbar右部添加按钮
 * 图片大小96x88
 */
- (void)addRightButtonWithImageNormal:(NSString*)imageNormal
                         imagePressed:(NSString*)imagePressed
                               action:(SEL)sel;
/**
 * navigationbar右部添加按钮
 * 图片大小96x88
 */
- (void)addRightButtonWithImageNormal:(NSString*)imageNormal
                               action:(SEL)sel;
/**
 * navigationbar右部添加按钮
 * title 按钮title
 * 图片大小96x88
 */
- (void)addRightButtonWithButtonTitle:(NSString *)title
                          imageNormal:(NSString*)imageNormal
                         imagePressed:(NSString*)imagePressed
                               action:(SEL)sel;
/**
 * 判断请求状态是否成功
 */
//- (BOOL)judgingTheRequestState:(NSDictionary *)jsonResult;

/**
 * 弹出登录登录界面
 */
//- (void)showLoginWithDelegate:(id<YZLoginDelegate>)delegate userInfo:(NSDictionary *)userInfo;

/**
 * 显示自定义的View
 */
- (void)showCustomView:(UIView *)view inWindow:(BOOL)inWindow;

- (void)hideCustomViewInWindow:(BOOL)inWindow;

- (void)hideCustomViewInWindow:(BOOL)inWindow forView:(UIView *)forView;

/**
 * 显示错误页面
 */
//- (void)showErrorView:(SDErrorType)errorType onView:(UIView *)onView;

/**
 * 判断网络
 */
//- (BOOL)isConnectionAvailable;



@end
